package com.mida.dms.knw.mapper;

import com.mida.dms.knw.entity.DtUseSpaceConsumer;
import com.mida.dms.knw.entity.vo.DtUseSpaceConsumerVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DtUseSpaceConsumerMapper {
    int deleteByPrimaryKey(Long spaceConsumerSoid);

    int insert(DtUseSpaceConsumer record);

    int insertSelective(DtUseSpaceConsumer record);

    DtUseSpaceConsumer selectByPrimaryKey(Long spaceConsumerSoid);

    int updateByPrimaryKeySelective(DtUseSpaceConsumer record);

    int updateByPrimaryKey(DtUseSpaceConsumer record);

    void deleteByUseSpaceSoid(@Param("useSpaceSoid") Long useSpaceSoid);

    void updateStatusByUseSpaceSoid(@Param("status") Long status, @Param("useSpaceSoid") Long useSpaceSoid);

    List<DtUseSpaceConsumerVo> findUseSpaceSoid(Long useSpaceSoid);
}